.class Lrexsee/network/RexseeInstantAudio$3$1$1;
.super Ljava/lang/Object;
.source "RexseeInstantAudio.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/network/RexseeInstantAudio$3$1;->run()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$2:Lrexsee/network/RexseeInstantAudio$3$1;

.field private final synthetic val$mHandler:Landroid/os/Handler;

.field private final synthetic val$mSocket:Ljava/net/Socket;


# direct methods
.method constructor <init>(Lrexsee/network/RexseeInstantAudio$3$1;Ljava/net/Socket;Landroid/os/Handler;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/network/RexseeInstantAudio$3$1$1;->this$2:Lrexsee/network/RexseeInstantAudio$3$1;

    iput-object p2, p0, Lrexsee/network/RexseeInstantAudio$3$1$1;->val$mSocket:Ljava/net/Socket;

    iput-object p3, p0, Lrexsee/network/RexseeInstantAudio$3$1$1;->val$mHandler:Landroid/os/Handler;

    .line 74
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    .prologue
    .line 78
    :try_start_0
    iget-object v2, p0, Lrexsee/network/RexseeInstantAudio$3$1$1;->this$2:Lrexsee/network/RexseeInstantAudio$3$1;

    # getter for: Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;
    invoke-static {v2}, Lrexsee/network/RexseeInstantAudio$3$1;->access$0(Lrexsee/network/RexseeInstantAudio$3$1;)Lrexsee/network/RexseeInstantAudio$3;

    move-result-object v2

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v2}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v2

    # getter for: Lrexsee/network/RexseeInstantAudio;->mBufferSizeEachTime:I
    invoke-static {v2}, Lrexsee/network/RexseeInstantAudio;->access$12(Lrexsee/network/RexseeInstantAudio;)I

    move-result v2

    new-array v0, v2, [B

    .line 79
    .local v0, "bytes":[B
    iget-object v2, p0, Lrexsee/network/RexseeInstantAudio$3$1$1;->this$2:Lrexsee/network/RexseeInstantAudio$3$1;

    # getter for: Lrexsee/network/RexseeInstantAudio$3$1;->this$1:Lrexsee/network/RexseeInstantAudio$3;
    invoke-static {v2}, Lrexsee/network/RexseeInstantAudio$3$1;->access$0(Lrexsee/network/RexseeInstantAudio$3$1;)Lrexsee/network/RexseeInstantAudio$3;

    move-result-object v2

    # getter for: Lrexsee/network/RexseeInstantAudio$3;->this$0:Lrexsee/network/RexseeInstantAudio;
    invoke-static {v2}, Lrexsee/network/RexseeInstantAudio$3;->access$0(Lrexsee/network/RexseeInstantAudio$3;)Lrexsee/network/RexseeInstantAudio;

    move-result-object v2

    # getter for: Lrexsee/network/RexseeInstantAudio;->mAudioRecord:Landroid/media/AudioRecord;
    invoke-static {v2}, Lrexsee/network/RexseeInstantAudio;->access$7(Lrexsee/network/RexseeInstantAudio;)Landroid/media/AudioRecord;

    move-result-object v2

    const/4 v3, 0x0

    array-length v4, v0

    invoke-virtual {v2, v0, v3, v4}, Landroid/media/AudioRecord;->read([BII)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v1

    .line 80
    .local v1, "length":I
    if-lez v1, :cond_0

    .line 82
    :try_start_1
    iget-object v2, p0, Lrexsee/network/RexseeInstantAudio$3$1$1;->val$mSocket:Ljava/net/Socket;

    invoke-virtual {v2}, Ljava/net/Socket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v2

    const/4 v3, 0x0

    invoke-virtual {v2, v0, v3, v1}, Ljava/io/OutputStream;->write([BII)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 86
    :cond_0
    :goto_0
    :try_start_2
    iget-object v2, p0, Lrexsee/network/RexseeInstantAudio$3$1$1;->val$mHandler:Landroid/os/Handler;

    const-wide/16 v3, 0x14

    invoke-virtual {v2, p0, v3, v4}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    .line 89
    .end local v0    # "bytes":[B
    .end local v1    # "length":I
    :goto_1
    return-void

    .line 87
    :catch_0
    move-exception v2

    goto :goto_1

    .line 83
    .restart local v0    # "bytes":[B
    .restart local v1    # "length":I
    :catch_1
    move-exception v2

    goto :goto_0
.end method
